<%-- 
    Document   : func_logistics_manager_dispatch_normalsheet
    Created on : 2018-5-27, 21:38:35
    Author     : Dannis
--%>

<%@page import="com.antexpress.common.Const"%>
<%@page import="com.antexpress.pojo.Employee"%>
<%@page import="com.antexpress.bean.Authentication"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Express -- Ant Express</title>
        <link rel="shortcut icon" href="static/img/ant-logo.png">
        <link href="static/css/style.css" rel="stylesheet" type="text/css"/>
        <link href="static/css/normalize.css" rel="stylesheet" type="text/css"/>
        <link href="static/css/default.css" rel="stylesheet" type="text/css"/>
        <link href="static/dist/css/jquery.secretnav.css" rel="stylesheet" type="text/css"/>
        <link href="static/css/demo.css" rel="stylesheet" type="text/css"/>
        <link href="static/font-awesome/css/font-awesome.css" rel="stylesheet" type="text/css"/>
    </head>
    <body>
        <%
            if (!Authentication.isLogin(session)) {
                response.sendRedirect("index.jsp");
                return;
            }
            Employee emp = (Employee) session.getAttribute(Const.CURRENT_USER);
              if (!Authentication.isHRAdmin(emp)&&!Authentication.isExpressAdmin(emp)
                    &&!Authentication.isExpressCourier(emp)&&!Authentication.isExpressAreaManager(emp)&&
                    !Authentication.isExpressLogisticsApproval(emp)&&!Authentication.isExpressLogisticsManager(emp)) {
                response.sendRedirect("404.jsp");
                return;
            }
        %>
        <div class="sn-outer-wrapper sn-moveleft modalview">
            <div class="sn-content-wrapper transform" style="cursor: default;">
                <div id="content" style="top: 0px;">
                    <jsp:include page="ui/header.jsp"/>
                    <div class="container-nav">
                        <div class="container">
                            <button class="open btn btn-default bt-open" title="Menu"><i class="fa fa-bars" aria-hidden="true"></i></button>
                            <!--此处可以扩展其他的功能-->
                             <%
                                if (Authentication.isExpressLogisticsManager(emp)) {
                                    out.println("<a href='express_courier.jsp' class='content-nav-bt'>Courier Management</a>");
                                    out.println("<a href='express_area_manager.jsp' class='content-nav-bt'>Area Manager Management</a>");
                                    out.println("<a href='express_logistics_approval.jsp' class='content-nav-bt'>Logistics Approval Management</a>");
                                    out.println("<a href='express_logistics_manager.jsp' class='content-nav-bt'>Logistics Manager Management</a>");
                                }
                            %>
                        </div>
                    </div>
                    <div class="container" style="text-align: left;color: #000">
                        <h1 class="heading"><i class="fa fa-users" aria-hidden="true"></i> Express Management</h1>
                        <a href='express_courier.jsp' class='content-nav-bt'>Courier Management</a>
                        <a href='express_area_manager.jsp' class='content-nav-bt'>Area Manager Management</a>
                        <a href='express_logistics_approval.jsp' class='content-nav-bt'>Logistics Approval Management</a>
                        
                    </div>
                </div>
            </div>
            <div class="sn-nav-wrapper">
                <nav id="nav" class="sn-nav left vertical">
                    <jsp:include page="ui/nav.jsp"/>
                </nav>
            </div>
        </div>
        <script src="static/js/modernizr.custom.25376.js" type="text/javascript"></script>
        <script src="static/js/jquery.js" type="text/javascript"></script>
        <script src="static/js/common-script.js" type="text/javascript"></script>
        <script src="static/dist/js/jquery.secretnav.js" type="text/javascript"></script>
        <script>
            $(function () {
                menu();
            });
        </script>

    </body>
</html>